<?php
/**
 * Trainingofferadmin_Data_Trainingofferadd
 *
 * @author Adrian Stolarski
 */
class Trainingofferadmin_Data_Trainingofferadd implements Trainingofferadmin_Data_Mainable, 
        Trainingofferadmin_Data_Preparable, Trainingofferadmin_Data_Templatable, 
        Trainingofferadmin_Data_Tokenable{
    
    public $random_token;
    
    public function create_token() {
        $this->random_token = new Core_Data_Tokenizer;
        return $this->random_token->create_token();
    }

    public function get_template_name() {
        $template = SERVER_ROOT."trainingofferadmin/views/trainingofferadd.php";
        return $template;
    }

    public function main(array $variables = null) {
        $page['template'] = $this->get_template_name();
        $page['csrf_token'] = $this->create_token();
        return $page;
    }

    public function prepare_query(array $variables = null) {
        
    }

}
